package mapper;

import com.mysql.cj.callback.UsernameCallback;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import pojo.User;

import java.util.List;

public interface UserMapper {
    @Select("select * from user where username = #{username} and password = #{password}")
    User select(@Param("username") String username,@Param("password") String password);

    List<User> selectall();

    User selectOne(String username,String password);
}
